<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>mini-vue</title>
</head>
<body>
    <div id="app">
        <h1>差值表达式</h1>
        <span>{{message}}</span>
        <span>{{count}}</span>
        <h1>v-text</h1>
        <span v-text='message'></span>
        <span v-text='count'></span>
        <h1>v-model</h1>
        <input type="text" v-model='message'>
        <input type="text" v-model='count'>
        <h1>v-html</h1>
        <div v-html='content'></div>
        <h1>v-on</h1>
        <button v-on:click='clickFn'>按钮</button>
    </div>
</body>
<script src="./dep.js"></script>
<script src="./watcher.js"></script>
<script src="./observer.js"></script>
<script src="./compiler.js"></script>
<script src="./vue.js"></script>
<script>
    const vm = new Vue({
        el: '#app',
        data: {
            message: '学习vue响应式',
            count: 1,
            dog: {
                name: 'tom'
            },
            content: '<h3>v-html指令</h3>',
            clickFn: function(event) {
                console.log(event)
            }
        }
    })
</script>
</html>